package com.zmy.seursstarter;

import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.boot.context.properties.EnableConfigurationProperties;


@ConfigurationProperties(prefix = "seu.rs")
@EnableConfigurationProperties(SeuRSProperties.class)
public class SeuRSProperties {

    private boolean enabled;

    // 请求路由
    private String publicKeyUrl = "https://auth.seu.edu.cn/auth/casback/getChiperKey";

    private String casLoginUrl = "https://auth.seu.edu.cn/auth/casback/casLogin";

    private String lectureUrl = "http://ehall.seu.edu.cn/gsapp/sys/jzxxtjapp/*default/index.do";

    // 请求头配置
    private String headerUserAgent = "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/115.0.0.0 Safari/537.36";

    private String headerContentType = "application/json";


    public void setPublicKeyUrl(String publicKeyUrl) {
        this.publicKeyUrl = publicKeyUrl;
    }

    public void setEnabled(boolean enabled) {
        this.enabled = enabled;
    }

    public void setHeaderUserAgent(String headerUserAgent) {
        this.headerUserAgent = headerUserAgent;
    }

    public void setHeaderContentType(String headerContentType) {
        this.headerContentType = headerContentType;
    }

    public void setCasLoginUrl(String casLoginUrl) {
        this.casLoginUrl = casLoginUrl;
    }

    public String getHeaderContentType() {
        return headerContentType;
    }

    public String getHeaderUserAgent() {
        return headerUserAgent;
    }

    public String getPublicKeyUrl() {
        return publicKeyUrl;
    }

    public String getCasLoginUrl() {
        return casLoginUrl;
    }

    public boolean isEnabled() {
        return enabled;
    }

    public String getLectureUrl() {
        return lectureUrl;
    }

    public void setLectureUrl(String lectureUrl) {
        this.lectureUrl = lectureUrl;
    }
}
